<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Home</title>
    <script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
    <script src="../js/bootstrap.min.js" type="text/javascript"></script>
    <script src="../css/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../css/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../css/ngTotal.css">
</head>

<body ng-app="my_App" ng-controller="homePic">

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid col-lg-8 col-lg-offset-2">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand " href="#/homePic" ng-click="activeA = true">管理平台</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li ng-class="{'active': activeA}"><a href="#/" ng-click="click_active()">
                    <span class = "glyphicon glyphicon-home"></span>&nbsp;首页</a></li>

                <li ng-class="{'active': activeB}"><a href="#/remote" ng-click="activeB = true">remote页面</a></li>

                <li ng-class="{'active': activeC}"><a href="#/biaodan" ng-click="activeC = true">表单页面</a></li>

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" aria-labelledby="dropdownMenu"
                       data-toggle="dropdown" data-hover="dropdown">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li ng-if="!class_login" >
                    <div class="navbar-form" role="form" >
                        <div class="form-group">
                            <div class="input-group">
                                <input type="text" ng-model="userinfo.username" class="form-control" placeholder="username" >
                            </div>
                            <input type="password" ng-model="userinfo.password" class="form-control" placeholder="password">
                        </div>
                        <button type="button" class="btn btn-primary" ng-click="login()">登录</button>
                    </div>
                </li>
                <!--<div class="alert alert-success" ng-if="!class_login" role="alert">登录成功！</div>-->
                <li class="dropdown " role="presentation"  ng-if="class_login">
                    <a class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">
                        Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#" ng-click="logout()">退&nbsp;出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<div ng-view=""></div>
<script src="../js/lib/bower_components/angular/angular.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>
<script src="../js/ngTotal.js" type="text/javascript"></script>
<script src="../js/lib/Angular-Paging-master/dist/paging.js" type="text/javascript"></script>
<script src="../js/app.js" type="text/javascript"></script>
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
<script src="../js/lib/bower_components/ui-bootstrap-tpls-2.4.0.js"></script>

<link rel="stylesheet" href="../css/style.css" media="screen" type="text/css" />

</body>
</html>